// 在渲染过程中
const { ipcRenderer } = require('electron')
ipcRenderer.invoke('perform-action', ["A","B","C","X","Y","Z"])
const electron = require('electron')
let obj = electron.remote.getGlobal('sharedObj')
console.log(obj)

// 渲染进程-显示提示通知
const Notification = require('electron').remote.Notification
function ShowNotification(txt) {
    new Notification('渲染进程通知', {
        body: txt
    }).Show()
}
const showNotiEle = document.getElementById("ShowNotification")
if (showNotiEle) {
    showNotiEle.addEventListener('click', () => {
        ShowNotification("Hello!" + new Date().getDate().toString())
    })
}